<?php
declare(strict_types=1);
namespace SixShop\Payment\Enum;

enum RefundStatusEnum:int
{
    case PENDING = 0;
    case REFUNDING = 1;
    case SUCCESS = 2;
    case FAIL = 3;

    public function toString(): string
    {
        return match ($this) {
            self::PENDING => '待退款',
            self::REFUNDING => '退款中',
            self::SUCCESS => '成功',
            self::FAIL => '失败',
            default => '未知',
        };
    }
}
